<?php
class CheckRechargeTimeAction extends SzAbstractAction
{
    Protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_STRING,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
    );

    /**
     * @param $userId
     * @param $platform
     * @param $type
     * @param $indexId
     * @param $reqTime
     * @return SzResponse
     * @throws SzException
     */
    public function execute($userId, $platform, $type, $indexId,$reqTime)
    {
        GameService::get()->validateMultiRequestTimeDelta($userId, $reqTime);
        return $this->buildResponse(
            CheckService::get()->checkRechargeTime($userId, $platform, $type, $indexId, $reqTime)
        );
    }
}